﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace JiveMessenger.CustomControls
{
    /// <summary>
    /// Interaction logic for TopHatControl.xaml
    /// </summary>
    public partial class TopHatControl : UserControl
    {


        public Brush BrimFillBrush
        {
            get { return (Brush)GetValue(BrimFillBrushProperty); }
            set { SetValue(BrimFillBrushProperty, value); }
        }

        // Using a DependencyProperty as the backing store for BrimFillBrush.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty BrimFillBrushProperty =
            DependencyProperty.Register("BrimFillBrush", typeof(Brush), typeof(TopHatControl), new PropertyMetadata((Brush)(new BrushConverter().ConvertFrom("#FF1C1C1C"))));



        public Brush TopFillBrush
        {
            get { return (Brush)GetValue(TopFillBrushProperty); }
            set { SetValue(TopFillBrushProperty, value); }
        }

        // Using a DependencyProperty as the backing store for TopFillBrush.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty TopFillBrushProperty =
            DependencyProperty.Register("TopFillBrush", typeof(Brush), typeof(TopHatControl), new PropertyMetadata((Brush)(new BrushConverter().ConvertFrom("#FF222222"))));




        public Brush OutlineBrush
        {
            get { return (Brush)GetValue(OutlineBrushProperty); }
            set { SetValue(OutlineBrushProperty, value); }
        }

        // Using a DependencyProperty as the backing store for OutlineBrush.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty OutlineBrushProperty =
            DependencyProperty.Register("OutlineBrush", typeof(Brush), typeof(TopHatControl), new PropertyMetadata((Brush)(new BrushConverter().ConvertFrom("#FF000000"))));



        
        public TopHatControl()
        {
            InitializeComponent();
            this.LayoutRoot.DataContext = this;
        }
    }
}
